All Questions
Tagged with powershellpnp-powershell
312 questions
0votes
0answers
11views
import export list from two different SharePoint Online sites using PnP Powershell
I'm looking for a way to import a sharepoint list of a sharepoint site and export it into another destination. I looked at this Powershell PnP commands I don't want the CopyList as i need to have the ...
0votes
0answers
32views
How do I use PnP to move large amounts of files without breaking sharing links and permissions?
I'm trying to find an archiving solution for my company that's easier than using the GUI and scrolling through large amounts of files and folders and manually using the Move To button. I have written ...
2votes
1answer
222views
How do I find out what kind of access a user has to a SharePoint Online site using PNP PowerShell?
In Powershell, after running the Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/xyz -UseWebLogin and Get-PnPUser -WithRightsAssigned commands, I can get the list of all users that have ...
0votes
1answer
86views
Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal
We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App ...
0votes
0answers
22views
How to count how many sites, libraries and documents shared with more as 50 users?
I would like to know how many sites, libraries and documents shared with more as 50 users. I write this PowerShell script, but it is very slow because we have thousands of SharePoint sites and 80 TB ...
0votes
0answers
63views
How to get the last viewed/accessed date of a document in powershell?
I would like to generate a csv report with inactive documents. How do I get the last viewed/accessed date of a document in powershell?
1vote
0answers
68views
remove Everyone and Everyone Except External Users from all places in an SPO Sites
Requirement: One of our Clients is working on correcting permissions on there tenant and thus needs to remove "Everyone" and "Everyone except external users" from identified places ...
2votes
2answers
305views
New site title is not propagating to group or team name if renamed programmatically
When I programmatically change the title of a group-based site using PowerShell, the site gets the new name, but the associated Microsoft 365 group does not. Furthermore, when you log in to the site, ...
0votes
2answers
132views
How to count all files recursive inside a specific folder programmatically in powershell?
How can I count all files recursive inside a specific folder in a document library by powershell? So he needs to count also the files inside the subfolders recursive.
0votes
0answers
34views
SetPnPView not working with aggregation
I want to update the view of SharePoint document library to display total no of items. I can manually go to each view and update but I have 22 libraries and 5 views in each library. There are total ...
0votes
2answers
435views
Import custom data from excel to sharepoint List in powershell
I come from sharepoint 2019 and i try to import data from excel to a list It's working fine for date and text datas But i don't understand about unique choice, checkbox or People picker fields. my ...
0votes
0answers
487views
Error : The remote server returned an error : (404) Not found when using Copy-PnPFolder powershell
I have been using the Copy-PnPFolder to copy files between sharepoint sites. But just suddenly i started receiding this error : The remote server returned an error : (404) Not found This is how i ...
0votes
1answer
374views
Can I use the Copy-PnPFolder to copy local files to SharePoint?
I'm trying to use the command below to copy local files to SharePoint. Copy-PnPFolder -LocalPath "C:\Projects\BS\Banner.zip" -TargetUrl "https://Demo.sharepoint.com/sites/Demo/Documents&...
0votes
1answer
2kviews
PnP Powershell Connection with ClientId and ClientSecre return error "The app principal does not exist"
I'm trying to run my Powershell PnP script using ClientId and ClientSecret instead of UseWebLogin. I already created an Azure Application ID using this tutorial (but skipping the certificate part for ...
0votes
2answers
588views
Script to empty 1st & 2nd stage recycling bins from all sites in SharePoint
I'm looking for a way to automate emptying the recycling bins (1st & 2nd stage) from all sites in our SharePoint (Online) collection. From searching, I've found solutions that no longer work (...